import {
    HTTP
} from "../utils/http.js"
class MyModel extends HTTP {
    loadMyAccount() { //个人账户查询
        return this.request({
            url: 'program/antCouponService/getAcountByOpenId',
            data: {},
            method: 'POST'
        })
    }
    loadMyAccount2() { //个人账户查询
        return this.request({
            url: 'program/antCouponService/getZhangHu',
            data: {},
            method: 'POST'
        })
    }
    getOilType() {
        return this.request({
            url: 'program/antProgramApiService/getOilType',
            data: {},
            method: 'POST'
        })
    }
    settingMsgload() { // 设置信息查询
        return this.request({
            url: 'program/antProgramApiService/showPersonalCenter',
            data: {},
            method: 'POST'
        })
    }
    settingMsgSave(userId, goodsName, stationName) { //设置信息保存
        return this.request({
            url: 'program/antProgramApiService/savePersonalCenter',
            data: {
                userId,
                goodsName,
                stationName
            },
            method: 'POST'
        })
    }
    getOilPrice(shopId) {
        return this.request({
            url: 'program/antProgramApiService/getOilPrice',
            data: {
                shopId
            },
            method: 'POST'
        })
    }
    // 取会员信息
    getCustomerInfo() {
        return this.request({
            url: 'program/antProgramApiService/getCustomerInfo',
            data: {
            },
            method: 'POST'
        })
    }
    // 修改会员信息
    updateCustomerInfo(idno,address,carLicense) {
        return this.request({
            url: 'program/antProgramApiService/updateCustomerInfo',
            data: {
                idno,
                address,
                carLicense
            },
            method: 'POST'
        })
    }
    getUserToExpiredPoint() {
        return this.request({
        url: 'program/antProgramApiService/getUserToExpiredPoint',
        data: {
        },
        method: 'POST'
        })
    }

}
export {
    MyModel
}